package log4j;

import org.apache.log4j.Logger;

public class Log4JPropertyTest {
    private static final Logger logger = Logger.getLogger(Log4JPropertyTest.class);
    public static void main(String[] args) {
        for (int k = 0; k < 100; k++) {
            logger.debug("Main cycle");
            DB.save(k);
            FrontEndA.render(k);
        }
    }
}
class DB {
    private static final Logger logger = Logger.getLogger("DB");
    public static void save(int k) {
        logger.info("I'm here, k = " + k);
    }
}
class FrontEndA {
    private static final Logger logger = Logger.getLogger("FrontEnd.A");
    public static void render(int k) {
        logger.info("I'm in render A A A!, k = " + k);
        FrontEndB.render(k);
    }
}
class FrontEndB {
    private static final Logger logger = Logger.getLogger("FrontEnd.B");
    public static void render(int k) {
        logger.info("I'm in render B B B!, k = " + k);
    }
}